<?

function RHeader($nokwit) {
  global $DBConnection;
  $SQL = "  SELECT *,DATE_FORMAT(tglkwit,'%d %M, %Y') as spell_date, SUM(jumlah)  as TOTALPAID,
            if (ifnull(tbldebtur.CUNPWP,'')='','-',tbldebtur.CUNPWP) as CUNPWP
            FROM ais_receipt
            LEFT JOIN tbldebtur ON ais_receipt.debtur=tbldebtur.CUCODE

            WHERE nokwit='$nokwit'
            GROUP BY nokwit ";
  return $DBConnection->dbc->get_row($SQL);
}
$Data = RHeader(GetParam("nokwit",""));
if ($Data->curr=="IDR") include("ais_transaction_receipt_entry_tax_idr.php");
else include("ais_transaction_receipt_entry_tax_usd.php");
?>
